from asyncio import QueueEmpty
from socket import timeout
from time import sleep
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from queue import Queue
from es import Es

from widgetMessage import msgDialog
from queue import Queue
from comInterface import SerialPort, TcpClient
import serial.tools.list_ports

comInterfaces = []

widgetHeight = 25


class MenuBarWidget(QMenuBar):
    def __init__(self):
        super().__init__()

        # self.menuFile = self.addMenu(QMenu("文件(File)", self))
        # self.menuLog = self.addMenu(QMenu("日志(Log)", self))

        self.menuFile = self.addMenu("文件(File)")
        self.menuLog = self.addMenu("日志(Log)")

        self.actionSaveLog = self.menuLog.addAction("保存到本地")
        self.actionClearLog = self.menuLog.addAction("清除log")



